﻿@model EasyMvc.Controls.PagedList<User>
@using EasyMvc.Controls
@using EasyMvc.Utility
@using EasyMvc.Models
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/MWeb/Views/Shared/_Layout.cshtml";
}

@section PageSpecificStyleSheetIncludes{
    <style type="text/css"> 
        
    </style>
}

@section PageSpecificJavascriptIncludes{
    <script type="text/javascript">
        $(document).ready(function () {
            
        }); 
    </script>
}
@using (Html.BeginForm(null, null, new { id = 1 }, FormMethod.Get, new { id = "search" }))
  { 
    <div class="toolbar">     
         <a href="#" id="delete" class="delete">删除所选</a>&nbsp;             
         <a href="@Url.Action("Create")?TB_iframe=true&height=280&width=300" class='thickbox add' title='信息添加'>添加新记录</a>
         <img class="spliter"/>
         角色名：@Html.TextBox("Username")
        <input type="submit" value="搜索" />
    </div>
} 
@using (Html.BeginForm("Delete", "User", FormMethod.Post, new { id = "mainForm" }))
{
<div class="grid">
    <table cellspacing="0" width="100%">
        <tr class="forumno category">
                <td width="30">
                    <input name="checkall" id="checkall" type="checkbox"/>
                </td>
                <td >
                    用户名
                </td>
                <td >
                    描述
                </td>
                <td >
                    加入时间
                </td>        
                <td width="80">
                    修改
                </td>
        </tr>
        @foreach (var p in Model)
        {
        <tr class="forumtd">
            <td>
                <input type='checkbox' name='ids' value='@p.Username' />
            </td>
            <td>
                <span>@p.Username</span>
            </td>
            <td>
                <span>@p.Description</span>
            </td>
            <td>
                <span>@p.AddTime</span>
            </td>
            <td class="toolbar">                
                <a href="@Url.Action("Edit",new { id=p.Username})?TB_iframe=true&KeepThis=true&height=280&width=300" class='thickbox edit' title='信息修改 '>修改</a>
            </td>
        </tr>
        }
        <tr class="forumtd2">
            <td colspan="4">
                @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "id" })
            </td>
        </tr>
     </table>
</div>
}
				            	


